<script language="javascript" src="<?php echo $this->url->get('../webmis/plugin/edit/tinymce/tinymce.min.js'); ?>"></script>
<div id="TabName1" class="noDisplay"><?php echo $Lang->_('web_news_tab1');?></div>
<div id="TabName2" class="noDisplay"><?php echo $Lang->_('web_news_tab2');?></div>
<div id="TabName3" class="noDisplay"><?php echo $Lang->_('web_news_tab3');?></div>
<form id="Form" action="<?php echo $this->url->get('WebNews/Data/edit');?>" method="post">
<table class="table_add">
	<tbody id="newsBody0">
	<tr>
		<td class="tright" width="80"></td>
		<td id="textVal"><span class="c2"><?php echo $incLang->_('inc_form_info');?></span></td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_class');?>:</td>
		<td>
			<input type="text" id="menus_fid" name="class" class="input" style="width: 60px;" value="<?php echo $Edit->class;?>" />
			<span id="newsClass">&nbsp;</span>
		</td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_title');?>:</td>
		<td>
			<input type="text" name="title" value="<?php echo $Edit->title;?>" class="input" style="width: 80%;" rangelength="[2,36]" required />
		</td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_source');?>:</td>
		<td>
			<input type="text" name="sources" value="<?php echo $Edit->sources;?>" class="input" style="width: 30%;" rangelength="[2,24]" required />
			<span class="inputText"><?php echo $Lang->_('web_news_author');?>:</span>
			<input type="text" name="author" value="<?php echo $Edit->author;?>" class="input" style="width: 20%;" rangelength="[2,12]" required />
		</td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_ctime');?>:</td>
		<td>
			<input type="text" id="datepicker" name="ctime" value="<?php echo $Edit->ctime;?>" class="input" style="width: 140px;" />
		</td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_key');?>:</td>
		<td>
			<input type="text" name="key" value="<?php echo $Edit->key;?>" class="input" style="width: 70%;" />
			<span class="inputText c2">WebMIS,PHP</span>
		</td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_summary');?>:</td>
		<td><textarea name="summary" style="float: left; width: 95%; height: 120px;" maxlength="300"><?php echo $Edit->summary;?></textarea><span class="inputText c2">1~300<?php echo $incLang->_('inc_form_char');?></span></td>
	</tr>
	<tr>
		<td class="tright"><?php echo $Lang->_('web_news_img');?>:</td>
		<td>
			<input type="text" name="img" value="<?php echo $Edit->img;?>" class="input" style="width: 70%;" /><span class="inputText c2">Width：110px Height：75px</span>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td class="sub">
			<input type="hidden" id="newsID" name="id" value="" />
			<input type="submit" id="Sub" value="<?php echo $incLang->_('inc_edit');?>" />
		</td>
	</tr>
	</tbody>
	<tbody id="newsBody1" style="display: none;">
	<tr>
		<td colspan="2">
			<textarea id="tinymce" name="content"><?php echo $Edit->content;?></textarea>
		</td>
	</tr>
	</tbody>
</table>
</form>
<div style="padding: 0 10px;" id="newsBody2" class="noDisplay">
	<div id="UplandArea" class="WebMIS_Upload" style="background: #FFF;">
		<div class="WebMIS_Upload_input">
			<label>
				<span><?php echo $Lang->_('web_news_file_input');?></span>
				<input type="file" name="files[]" multiple="multiple">
			</label>&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $Lang->_('web_news_file_text');?>
		</div>
		<div id="UplandFiles" class="WebMIS_Upload_files">
<?php if($Upload){foreach ($Upload as $val){?>
			<div class="WebMIS_Upload_files_ct">
				<div class="WebMIS_Upload_files_img" style="background-image: url('<?php echo $val['path'].$val['name'];?>');"></div>
				<div class="WebMIS_Upload_files_title"><span>#&nbsp;&nbsp;<b><?php echo $val['path'].$val['name'];?></b> ( <?php echo $val['size'];?> )</span><em onclick="RemoveIMG($(this),<?php echo $Edit->id;?>,'<?php echo $val['name'];?>');"></em></div>
				<div title="Loaging" class="WebMIS_Upload_files_load"><div style="width: 100%;" class="WebMIS_Upload_files_bar">&nbsp;100%&nbsp;</div></div>
			</div>
<?php }}?>
		</div>
	</div>
</div>